<!--这是查看二维码组件-->
<template>
  <div style="padding-bottom: 30px;">
    <div>
      <p style="width:300px;height:300px;margin: 20px;" v-html="qrCode">
      </p>
    </div>
  </div>
</template>
<script>
  import { getQrCode } from '@/api/activities'
  export default {
    data() {
      return {
        qrCode: null
      }
    },
    methods: {},
    created() {
    },
    mounted() {
      getQrCode(this.$route.params.activityId).then(res => {
        if (res.data.statusCode == 200) {
          this.qrCode = res.data.data
          console.log('d', this.qrCode)
        }
      })
    }
  }
</script>
<style scoped>
  p, h3 {
    margin: 0;
    padding: 0
  }

  .fixTitle {
    font-weight: 500;
    font-size: 14px;
    height: 36px;
    background: #eee;
    border-bottom: 1px solid #ddd;
    line-height: 36px;
    padding-left: 20px;
  }

  .addBox {
    width: 100%;
    height: auto;
    background: #fff;
  }
  .demo-table-expand {
    font-size: 0;
  }
  .demo-table-expand label {
    width: 90px;
    color: #99a9bf;
  }
  .demo-table-expand .el-form-item {
    margin-right: 0;
    margin-bottom: 0;
    width: 50%;
  }
</style>
